#include <wolfssl_ext4.h>

ext4_file *ttos_fopen(const char *path, const char *flags)
{
	ext4_file *p_ext4_file = malloc(sizeof (ext4_file));
	if (p_ext4_file != NULL)
	{
		if (ext4_fopen(p_ext4_file, path, flags) != EOK)
		{
			free(p_ext4_file);
			p_ext4_file = NULL;
		}
	}

	return p_ext4_file;
}

int ttos_fseek(ext4_file *file, off_t offset, uint32_t origin)
{
	return -ext4_fseek(file, offset, origin);
}
